<?php $this->renderPartial('_tabs'); ?>
<div class="grid_16">
    <div class="admin-agency form">
		<div class="section">
			<div class="block">
				<?php
				$form = $this->beginWidget('CActiveForm', array(
					'id' => 'admin-tickets-escalation-form',
					'enableAjaxValidation' => false,
					'htmlOptions' => array()
				));
				?>
				<h2>Update Escalation Level</h2>
				<table class="table">
					<tr>
						<td>
							<div class="form-table-block">
								<?php echo $form->labelEx($escalationLevel, 'user_id', array('label' => 'User')); ?>
								<?php echo $form->dropDownList($escalationLevel, 'user_id', $this->getUserListData(), array('prompt' => 'Select user')); ?>
							</div>
						</td>
						<td>
							<div class="form-table-block">
								<?php echo $form->labelEx($escalationLevel, 'interval'); ?>
								<?php echo $form->dropDownList($escalationLevel, 'interval', EscalationLevel::getIntervalsListData()); ?>
							</div>
						</td>
						<td>
							<div class="form-table-block">
								<?php echo $form->labelEx($escalationLevel, 'is_automatic'); ?>
								<?php echo $form->checkBox($escalationLevel, 'is_automatic'); ?>
							</div>
						</td>
					</tr>
				</table>
				<button type="submit" class="link-button green round_all no-margin">
					<span>Save Changes</span>
				</button>
				<?php $this->endWidget(); ?>
			</div>
		</div>
    </div>
</div>